package Chapter04.TS;

import java.util.Scanner;

public class Test {
    public static
    void main(String[] args) {
        //数字

                Scanner sc = new Scanner(System.in);
                int a = sc.nextInt();
                if (a<0||(a!=0&&a%10==0)) {
                    System.out.println("这个不是回文数");
                }
                int res = 0;
                while (a>res) {
                    res = res*10+a%10;
                    a=a/10;
                }
                if (a==res||a==res/10) {
                    System.out.println("这是一个回文数");
                }else {
                    System.out.println("这个不是回文数");
                }
       }
  }

